﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SportingGoodsExhibitionSystem
{
    /// <summary>
    /// BackSche.xaml 的交互逻辑
    /// </summary>
    public partial class BackSche : Window
    {
        public BackSche()
        {
            InitializeComponent();
        }

        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.RemovedItems.Count > 0)
            {
                //cobType为comboBox控件名
               
                //ComboBoxItem comboBoxItem 
                //= ComboBox.SelectedItemProperty;
                 
                ComboBoxItem comboBoxItem = (ComboBoxItem)comboBox.SelectedItem;
                this.frame.Navigate(new Uri(comboBoxItem.Tag.ToString() + ".xaml", UriKind.Relative));
            }
            
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.frame.Navigate(new Uri("backInfo" + ".xaml", UriKind.Relative));
        }
    }
}
